package com.zhongli.devplatform.dto.user;

import com.zhongli.devplatform.enums.UserType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户注册 数据传输对象
 */
@Data
@Validated
@ApiModel(value = "用户注册",description = "学生家长注册数据传输对象")
public class UserRegisterDTO {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "phone",value = "手机号必填", required = true)
    private String phone;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(name = "password",value = "密码必填", required = true)
    private String password;

    /**
     * 手机验证码
     */
    @NotBlank(message = "手机验证码不能为空")
    @ApiModelProperty(name = "code",value = "手机验证码必填", required = true)
    private String code;

    /**
     * 用户角色
     */
    @NotBlank(message = "用户角色")
    @ApiModelProperty(name = "role",value = "用户角色必填(student学生,parent家长)", required = true)
    private String role;

    /**
     * 邀请码
     */
    @ApiModelProperty(name = "invitationCode",value = "班级邀请码(学生注册必填)")
    private String invitationCode;
}
